<template>
  <div id="app">
    <AppLayout />
  </div>
</template>

<script setup lang="ts">
import { onMounted } from 'vue'
import AppLayout from '@/components/Layout/AppLayout.vue'
import { useAuthStore } from '@/stores/auth'

const authStore = useAuthStore()

onMounted(async () => {
  try {
    // 初始化认证状态
    await authStore.initialize()
  } catch (error) {
    console.error('App initialization error:', error)
  }
})
</script>


